﻿using PrismRegion.NewRegion;
using PrismRegion.NewRegion.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace PrismRegion.Base
{
    public class Startup : PrismBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            return Container.Resolve<MainView>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            // 注册弹窗
            containerRegistry.RegisterDialog<DialogView>();
            // 注册导航
            containerRegistry.RegisterForNavigation<SubView>();
        }
    }
}
